/*
 * $Id: Udp4Address.h,v 1.8 2005-07-23 14:05:45 bacon Exp $
 */

#ifndef _XPP_NET_UDP4ADDRESS_CLASS_
#define _XPP_NET_UDP4ADDRESS_CLASS_

#include <xpp/net/UdpAddress.h>

namespace xpp
{
	namespace net
	{

		class Udp4Address: public UdpAddress
		{
		public:
			Udp4Address ();
			Udp4Address (const InetAddress& adr);
			Udp4Address (const struct sockaddr_in& adr);
			Udp4Address (xp_uint16_t port, xp_uint32_t ip);

			Udp4Address& operator= (const Udp4Address& adr);
			Udp4Address& operator= (const InetAddress& adr);

			xp_uint16_t port () const;
			xp_uint32_t ip () const;
		};

	}
}

#endif
